package cn.neusoft.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {

    private Integer pageNow = 1;
    private Integer pageCount = 5;

    public int getStartIndex(){
        return (pageNow-1)*pageCount;
    }

}
